<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改数据探索')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-explore-edit" th:object="${statDataExplore}">
            <input name="exploreId" th:field="*{exploreId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">系统id：</label>
                <div class="col-sm-8">
                    <input name="sysId" th:field="*{sysId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">系统代码：</label>
                <div class="col-sm-8">
                    <input name="sysCode" th:field="*{sysCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">系统名称：</label>
                <div class="col-sm-8">
                    <input name="sysName" th:field="*{sysName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">jdbc驱动：</label>
                <div class="col-sm-8">
                    <input name="jdbcDriver" th:field="*{jdbcDriver}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">jdbc连接串：</label>
                <div class="col-sm-8">
                    <input name="jdbcConnectString" th:field="*{jdbcConnectString}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">jdbc用户名：</label>
                <div class="col-sm-8">
                    <input name="jdbcUsername" th:field="*{jdbcUsername}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">jdbc密码：</label>
                <div class="col-sm-8">
                    <input name="jdbcPassword" th:field="*{jdbcPassword}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">探索耗时：</label>
                <div class="col-sm-8">
                    <input name="exploreTime" th:field="*{exploreTime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">探索开始时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="exploreBeginTime" th:value="${#dates.format(statDataExplore.exploreBeginTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">探索结束时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="exploreEndTime" th:value="${#dates.format(statDataExplore.exploreEndTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "stat/explore";
        $("#form-explore-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-explore-edit').serialize());
            }
        }

        $("input[name='exploreBeginTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='exploreEndTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>